From 82e469ef221e5a5f57bbe99d750e9c1f41f931f3 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 17 Oct 2014 12:22:52 -0700 Subject: [PATCH] source changes --- src/cargo/core/source.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cargo/core/source.rs b/src/cargo/core/source.rs index 1e6df19d5..3740ca3ea 100644 --- a/src/cargo/core/source.rs +++ b/src/cargo/core/source.rs @@ -449,11 +449,11 @@ mod tests { let s1 = SourceId::new(GitKind("master".to_string()), loc); let loc = "git://github.com/foo/bar".to_url().unwrap(); - let mut s2 = SourceId::new(GitKind("master".to_string()), loc); + let s2 = SourceId::new(GitKind("master".to_string()), loc.clone()); assert_eq!(s1, s2); - s2.kind = GitKind("foo".to_string()); - assert!(s1 != s2); + let s3 = SourceId::new(GitKind("foo".to_string()), loc); + assert!(s1 != s3); } } -- 2.30.2